<?php

namespace app\modules\web\controllers;

use app\modules\web\controllers\common\BaseController;

class BookController extends BaseController
{
    public function __construct($id, \yii\base\Module $module, array $config = [])
    {
        parent::__construct($id, $module, $config);
        $this->layout = "main";
    }

    //列表
    public function actionIndex()
    {
        return $this->render('index');
    }
    //编辑或者添加
    public function actionSet()
    {
        return $this->render('set');
    }
    //详情
    public function actionInfo()
    {
        return $this->render('info');
    }
    //图片资源
    public function actionImages()
    {
        return $this->render('images');
    }
    //图片资源
    public function actionCat()
    {
        return $this->render('cat');
    }
    //图片资源
    public function actionCat_set()
    {
        return $this->render('cat_set');
    }
}
